
<%= simple_form_for(@contract) do |f| %>
  <%= f.error_notification %>
  <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>

  <div class="form-inputs">
    <%= f.input :contract_code, label:"合同编号" %>
    <%= f.input :contract_date %>
    <%= f.input :buyer %>
    <%= f.input :buyer_address %>
    <%= f.input :buyer_agent %>
    <%= f.input :buyer_tel %>
    <%= f.input :buyer_fax %>
    <%= f.input :buyer_bank %>
    <%= f.input :buyer_bank_account %>
    <%= f.input :buyer_address %>
    <%= f.input :seller %>
    <%= f.input :seller_address %>
    <%= f.input :seller_agent %>
    <%= f.input :seller_tel %>
    <%= f.input :seller_fax %>
    <%= f.input :seller_bank %>
  </div>

  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>
